<template>
  <a-layout class="basic-layout">
    <!-- 顶部导航栏 -->
    <GlobalHeader />

    <!-- 中间内容区域 -->
    <a-layout-content class="layout-content">
      <div class="content-wrapper">
        <router-view />
      </div>
    </a-layout-content>

    <!-- 底部版权信息 -->
    <GlobalFooter />
  </a-layout>
</template>

<script setup lang="ts">
import GlobalHeader from '../components/GlobalHeader.vue'
import GlobalFooter from '../components/GlobalFooter.vue'
</script>

<style scoped>
.basic-layout {
  min-height: 100vh;
  background: #f5f5f5;
}

.layout-content {
  padding: 12px 12px;
}

.content-wrapper {
  max-width: 100vw;
  margin: 0 auto;
  padding: 24px 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-height: calc(100vh - 140px); /* 调整内容区域最小高度 */
}

/* 响应式设计 */
@media (max-width: 768px) {
  .content-wrapper {
    padding: 0 16px;
    margin: 0 16px;
  }

  .layout-content {
    padding: 16px 0;
  }
}

@media (max-width: 576px) {
  .content-wrapper {
    padding: 0 12px;
    margin: 0 12px;
  }

  .layout-content {
    padding: 12px 0;
  }
}
</style>
